<?php

require_once("../../controllers/init.php");
require_once($FILE_SYSTEM_ROOT."/controllers/authentication.php");
require_once($FILE_SYSTEM_ROOT."/model/classes/utilities/User.php");

$user = new User($_POST['SnapUserID']);

$user->setLongName  ($_POST['LongName']);
$user->setShortName ($_POST['ShortName']);
$user->setPassword  ($_POST['Password']);
$user->setEmail     ($_POST['Email']);
$user->setGroupID   ($_POST['GroupID']);
//$user->setSnapUserID($_POST['SnapUserID']);

$user->save();
